package com.avicsafety.ezsystem.mvp.presenter;

import com.avicsafety.ezsystem.mvp.view.BaseView;

public class BasePresenter<T extends BaseView> {

    /**
     * 绑定的view
     */
    private T mView;

    public void attachView(T mvpView) {
        this.mView = mvpView;
    }

    public void detachView() {
        this.mView = null;
    }

    public boolean isBindView(){
        return this.mView!=null;
    }

    public T getView(){
        return mView;
    }

}
